package com.example.yoho.mvc;


import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.example.yoho.R;
import com.example.yoho.mvp.view.activity.MainActivity;

import java.util.Timer;
import java.util.TimerTask;

public class SplaishActivity extends AppCompatActivity {

    Timer timer;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_splaish);

                timer = new Timer();
                timer.schedule(new TimerTask() {
                    @Override
                    public void run() {
                        Intent intent = new Intent(SplaishActivity.this, MainActivity.class);
                        startActivity(intent);
                        timer.cancel();
                    }
                },2000,2000);


    }
}
